package com.guodi.map.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @描述：专题目录/图层
 * @作者: 代鹏刚
 * @日期: 2019-12-11
 */
@Data
@ApiModel(value="专题目录/图层")
public class ApiMapProjectDir implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "目录名称不能为空")
    @ApiModelProperty(value = "目录名称", required = true)
    private String name;

    @NotBlank(message = "上级目录ID不能为空")
    @ApiModelProperty(value = "上级目录ID", required = true)
    private String parentId;

    @ApiModelProperty(value = "上级目录名称", required = true)
    private String parentName;

    @NotNull(message = "目录/图层 类型不能为空")
    @ApiModelProperty(value = "目录/图层 类型（1.目录，2图层，3：组合图层）", required = true)
    private Integer type;

    @ApiModelProperty(value = "图层透明度")
    private Integer opacity;

    @NotNull(message = "是否显示不能为空")
    @ApiModelProperty(value = "是否显示（ 0：不显示，1：显示）", required = true)
    private Integer isShow;

    @NotNull(message = "是否编辑不能为空")
    @ApiModelProperty(value = "是否编辑（0：不可编辑，1：可编辑）", required = true)
    private Integer isEdit;

    @ApiModelProperty(value = "显示顺序")
    private Integer sort;

    @NotBlank(message = "所属机构ID不能為空")
    @ApiModelProperty(value = "所属机构ID")
    private String orgId;

    @ApiModelProperty(value = "图层ID")
    private String layerId;

    @NotBlank(message = "专题ID不能为空")
    @ApiModelProperty(value = "专题ID", required = true)
    private String projectId;

    @ApiModelProperty(value = "是否常用（0：否，1：是）")
    private Integer isCommon;

    @ApiModelProperty(value = "是否收藏（0：否，1：是）")
    private Integer isCollect;

    @ApiModelProperty(value = "是否图层目录（0：否，1：是）")
    private Integer isLayerDir;

    @ApiModelProperty(value = "是否显示时间轴（ 0：否，1：是）")
    private Integer isShowTime;

    @ApiModelProperty(value = "备注")
    private String remark;

}
